<template>
  <div class="box">
    <section class="section__slider">
      <div class="container__center">
        <div class="swiper-container">
          <div class="swiper-wrapper">
            <div class="swiper-slide">
              <div class="swiper-slide__block">
                <div
                  class="swiper-slide__block__img"
                  data-swiper-parallax-y="70%"
                >
                  <a target="_blank" href="#">
                    <img
                      src="https://images.unsplash.com/photo-1456518563096-0ff5ee08204e?auto=format&amp;fit=crop&amp;w=1351&amp;q=60&amp;ixid=dW5zcGxhc2guY29tOzs7Ozs%3D"
                      alt=""
                    >
                  </a>
                </div>
                <div class="swiper-slide__block__text">
                  <h2 data-swiper-parallax-x="-60%" class="main__title">
                    撒打发斯蒂芬 <br>One
                    <span>.</span>
                  </h2>
                  <h3 data-swiper-parallax-x="-50%" class="main__subtitle">
                    时间线
                    <span> • 2017</span>
                  </h3>
                  <p data-swiper-parallax-x="-40%" class="paragraphe">
                    阿斯顿发阿斯顿发阿斯顿发阿斯顿发阿斯顿发阿斯顿发阿斯顿发阿斯顿发送到发送到阿斯顿发生发生发送到发送到发士大夫按时发生发送到发
                  </p>
                  <a
                    data-swiper-parallax-x="-30%"
                    class="link"
                    target="_blank"
                    href="#"
                  >Discover</a>
                  <span data-swiper-parallax-y="60%" class="number">1</span>
                </div>
              </div>
            </div>
            <div class="swiper-slide">
              <div class="swiper-slide__block">
                <div
                  class="swiper-slide__block__img"
                  data-swiper-parallax-y="70%"
                >
                  <a target="_blank" href="#">
                    <img
                      src="https://images.unsplash.com/photo-1510709657750-f5a80fc8da9c?auto=format&amp;fit=crop&amp;w=1950&amp;q=60&amp;ixid=dW5zcGxhc2guY29tOzs7Ozs%3D"
                      alt=""
                    >
                  </a>
                </div>
                <div class="swiper-slide__block__text">
                  <h2 data-swiper-parallax-x="-60%" class="main__title">
                    阿斯顿发 <br>Two
                    <span>.</span>
                  </h2>
                  <h3 data-swiper-parallax-x="-50%" class="main__subtitle">
                    时间线
                    <span>• 2017</span>
                  </h3>
                  <p data-swiper-parallax-x="-40%" class="paragraphe">
                    安抚撒旦法阿斯顿发安抚阿斯顿发 阿斯顿发阿斯顿发生的
                  </p>
                  <a
                    data-swiper-parallax-x="-30%"
                    style="z-index: 5;"
                    class="link"
                    target="_blank"
                    href="#"
                  >Discover</a>
                  <span data-swiper-parallax-y="60%" class="number">2</span>
                </div>
              </div>
            </div>
            <div class="swiper-slide">
              <div class="swiper-slide__block">
                <div
                  class="swiper-slide__block__img"
                  data-swiper-parallax-y="70%"
                >
                  <a target="_blank" href="#">
                    <img
                      src="https://images.unsplash.com/photo-1505567745926-ba89000d255a?auto=format&amp;fit=crop&amp;w=1951&amp;q=60&amp;ixid=dW5zcGxhc2guY29tOzs7Ozs%3D"
                      alt=""
                    >
                  </a>
                </div>
                <div class="swiper-slide__block__text">
                  <h2 data-swiper-parallax-x="-60%" class="main__title">
                    撒旦法阿斯顿 <br>Three
                    <span>.</span>
                  </h2>
                  <h3 data-swiper-parallax-x="-50%" class="main__subtitle">
                    时间线
                    <span>• 2017</span>
                  </h3>
                  <p data-swiper-parallax-x="-40%" class="paragraphe">
                    撒旦法阿斯顿发阿斯顿发阿斯顿发送到发烧收到发送到发送到发
                  </p>
                  <a
                    data-swiper-parallax-x="-30%"
                    class="link"
                    target="_blank"
                    href="#"
                  >Discover</a>
                  <span data-swiper-parallax-y="60%" class="number">3</span>
                </div>
              </div>
            </div>
          </div>
          <div class="swiper-button-next">
            <i class="fa fa-long-arrow-right" aria-hidden="true" />
          </div>
          <div class="swiper-button-prev">
            <i class="fa fa-long-arrow-left" aria-hidden="true" />
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  mounted() {
    if (window.innerWidth < 1200) {
      // eslint-disable-next-line no-undef
      new Swiper('.swiper-container', {
        direction: 'horizontal',
        slidesPerView: 1,
        paginationClickable: !0,
        navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev'
        },
        spaceBetween: 0,
        autoplay: 2500,
        loop: !0
      })
    } else {
      // eslint-disable-next-line no-undef
      new Swiper('.swiper-container', {
        direction: 'horizontal',
        slidesPerView: 1,
        parallax: !0,
        navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev'
        },
        paginationClickable: !0,
        spaceBetween: 0,
        speed: 1500,
        autoplay: 2500,
        loop: !0
      })
    }
  }
}
</script>
<style lang="scss" scoped>
.centerx,
.header__basic--black .header__img,
.section__crazy__color .wrapper__color .wrapper__panel .color .color__el h3,
.section__handsketch__color .wrapper__audrio .color .color__el h3,
.section__handsketch__color .wrapper__audrio img,
.section__woy__color .wrapper__audrio .color .color__el h3,
.section__woy__color .wrapper__audrio img {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.centery,
.header__basic--studio .header__img,
.section__404 .title__block,
.section__jobs .jobs__ul .jobs__ul__li .jobs__ul__li__a i,
.section__site .site__template .site__template__bar .template__button {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.centerxy,
.flux__el--twitter p,
.job__title .close--profil i,
.job__title .title__block,
.loading .loading__elements #display,
.loading .loading__elements #progress,
.navigation__project .navigation__project__block .content__text,
.navigation__project .navigation__project__block:nth-child(2) .link,
.other__team .profil__team .profil__team__li a img,
.section__404 .overlay__404,
.section__about .background__about .play i,
.section__customer .customers .customers__li img,
.section__projets .awards .awards__li a img,
.section__projets
  .swiper-projets
  .swiper-slide
  .swiper-slide-block-content
  .text__content,
.section__team .swiper-slide .slide__img .overlay,
nav .center__navigation {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateY(-50%) translateX(-50%);
  -ms-transform: translateY(-50%) translateX(-50%);
  transform: translateY(-50%) translateX(-50%);
}

.box {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: #21272b;
  cursor: pointer;
}

article,
aside,
footer,
header,
nav,
section {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

figcaption,
figure,
main {
  display: block;
}

figure {
  margin: 1em 40px;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
}

a:active,
a:hover {
  outline-width: 0;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: inherit;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

dfn {
  font-style: italic;
}

mark {
  background-color: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

audio,
video {
  display: inline-block;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

img {
  border-style: none;
}

svg:not(:root) {
  overflow: hidden;
}

button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

[type="reset"],
[type="submit"],
button,
html [type="button"] {
  -webkit-appearance: button;
}

[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner,
button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring,
button:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  border: 1px solid silver;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  display: inline-block;
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details,
menu {
  display: block;
}

summary {
  display: list-item;
}

canvas {
  display: inline-block;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

body {
  background-color: transparent;
  padding: 0;
  transition: padding 0.3s ease-in-out;
}

.main__title {
  color: #f2f3f3;
  text-transform: uppercase;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  font-size: 2.6em;
  letter-spacing: 1px;
  margin: 0;
}

.main__title span {
  color: #ff2d71;
}

.main__subtitle {
  margin: 2px 0;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  font-size: 0.9em;
  color: #f2f3f3;
}

@media (min-width: 768px) {
  .main__subtitle {
    font-size: 1.1em;
  }
}

.main__subtitle span {
  font-family: "Patua One", cursive;
  color: #00a8af;
  font-style: italic;
}

.link {
  display: inline-block;
  width: auto;
  position: relative;
  text-decoration: none;
  color: #21272b;
  font-family: Montserrat, sans-serif;
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00a8af !important;
  transition: all 0.3s ease-in-out;
}

.link:hover {
  letter-spacing: 2px;
}

.link__apply {
  display: block;
  width: 150px;
  padding: 16px 12px;
  background-color: #00a8af;
  border: 2px solid #00a8af;
  border-radius: 1px;
  color: #f2f3f3;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  font-size: 0.813em;
  letter-spacing: 1px;
  transition: all 0.3s ease-in-out;
}

.link__apply:hover {
  background-color: transparent;
  letter-spacing: 3px;
  border-radius: 1px;
}

.link__apply:active {
  background-color: transparent;
  letter-spacing: 3px;
  border-radius: 1px;
}

.link__apply:focus {
  background-color: transparent;
  letter-spacing: 3px;
  border-radius: 1px;
}

.swiper-container {
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  cursor: -webkit-grab;
  cursor: grab;
}

@media (min-width: 1200px) {
  .swiper-container {
    height: 550px;
  }
}

.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background-image: none;
  background-color: #e4e4e4;
  z-index: 2;
  cursor: pointer;
}

.swiper-button-next i,
.swiper-button-prev i {
  position: relative;
  left: 50%;
  top: 50%;
  color: #21272b;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  transition: all 0.3s ease-in-out;
}
@keyframes arrowRight {
  0% {
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
  }

  50% {
    -webkit-transform: translate(-10px, -50%);
    transform: translate(-10px, -50%);
  }

  100% {
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
  }
}
.swiper-button-next:hover i,
.swiper-button-prev:hover i {
  -webkit-animation: arrowRight 1s infinite;
  animation: arrowRight 1s infinite;
}

.swiper-button-next {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 0;
}

@media (min-width: 1200px) {
  .swiper-button-next {
    right: 300px;
    background-color: #f2f3f3;
  }
}

.swiper-button-prev {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
}

@media (min-width: 1200px) {
  .swiper-button-prev {
    bottom: 74px;
    background-color: #f2f3f3;
  }
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  width: 100%;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.swiper-slide__block {
  width: 100%;
  margin: 0 auto;
  height: 100%;
  text-align: left;
}

.swiper-slide__block .swiper-slide__block__img {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.swiper-slide__block .swiper-slide__block__img a {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 1200px) {
  .swiper-slide__block .swiper-slide__block__img {
    width: 65%;
    max-height: 476px;
    height: 476px;
    max-width: 735px;
    overflow: hidden;
    position: relative;
  }
}

.swiper-slide__block .swiper-slide__block__img img {
  width: 100%;
  height: auto;
  transition: all 0.3s ease-in-out;
}

@media (min-width: 1200px) {
  .swiper-slide__block .swiper-slide__block__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
  }
}

.swiper-slide__block .swiper-slide__block__img:hover img {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  -webkit-filter: brightness(0.5);
  filter: brightness(0.5);
}

.swiper-slide__block .swiper-slide__block__text {
  width: 85%;
  height: auto;
  margin: 0 auto;
  margin-top: 50px;
  position: relative;
}

@media (min-width: 768px) {
  .swiper-slide__block .swiper-slide__block__text {
    margin-top: 100px;
  }
}

@media (min-width: 1200px) {
  .swiper-slide__block .swiper-slide__block__text {
    width: 40%;
    height: 100%;
    max-height: 476px;
    max-width: 400px;
    position: absolute;
    background-color: transparent;
    top: 0;
    right: 0;
    margin-top: 0;
    padding: 0;
  }

  .swiper-slide__block .swiper-slide__block__text:before {
    content: "";
    display: block;
    width: 200px;
    max-width: 408px;
    height: 100%;
    background-color: #e4e4e4;
    position: absolute;
    left: -100px;
  }
}

.swiper-slide__block .main__title {
  color: #f2f3f3;
  text-transform: uppercase;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  font-size: 2.6em;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 7px 7px 16px #d2d2d2;
}

.swiper-slide__block .main__title span {
  color: #ff2d71;
}

@media (min-width: 768px) {
  .swiper-slide__block .main__title {
    font-size: 3em;
  }
}

@media (min-width: 1200px) {
  .swiper-slide__block .main__title {
    margin-top: 100px;
  }
}

.swiper-slide__block .main__subtitle {
  margin: 2px 0;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  font-size: 0.9em;
  color: #f2f3f3;
}

@media (min-width: 768px) {
  .swiper-slide__block .main__subtitle {
    font-size: 0.9em;
  }
}

.swiper-slide__block .main__subtitle span {
  font-family: "Patua One", cursive;
  font-style: normal;
  color: #00a8af;
  letter-spacing: 1px;
}

.swiper-slide__block .main__subtitle,
.swiper-slide__block .main__title,
.swiper-slide__block .paragraphe {
  color: #21272b;
  z-index: 2;
  position: relative;
}

.swiper-slide__block .paragraphe {
  max-width: 413px;
  text-shadow: 7px 7px 16px #d2d2d2;
  margin-top: 24px;
}

.swiper-slide__block .number {
  font-family: Montserrat, sans-serif;
  font-size: 12em;
  font-weight: 900;
  width: 100%;
  display: block;
  color: rgba(16, 47, 65, 0.04);
  position: relative;
  bottom: 100px;
  z-index: 1;
  text-align: right;
  margin: 0;
  line-height: 120px;
}

@media (min-width: 1200px) {
  .swiper-slide__block .number {
    margin-top: 100px;
    font-size: 15em;
  }
}

.loading {
  width: 100%;
  height: 100vh;
  background-color: #f8f8f8;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  -webkit-transform-origin: left top;
  -ms-transform-origin: left top;
  transform-origin: left top;
  overflow: hidden;
}

.loading .loading__elements {
  width: 100%;
  height: 50%;
}

.loading .loading__elements #progress {
  display: block;
  width: 300px;
  height: 30px;
  z-index: 1;
  font-family: Montserrat, sans-serif;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}

.loading .loading__elements #progress::-webkit-progress-bar {
  display: block;
  width: 100%;
  transition: all 0.3s;
}

.loading .loading__elements #progress::-webkit-progress-value {
  background-color: rgba(131, 201, 207, 0.8);
  background: -webkit-linear-gradient(#00a8af, #83c9cf);
}

.loading .loading__elements progress[value]::-webkit-progress-bar {
  background-color: #f8f8f8;
  border-radius: 2px;
  box-shadow: none;
}

.loading .loading__elements #display {
  display: block;
  font-size: 5em;
  z-index: 2;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  text-align: center;
  margin-bottom: 50px;
  color: #21272b;
}

.section__slider {
  width: 100%;
  height: auto;
  background-color: #f2f3f3;
}

@media (min-width: 1200px) {
  .section__slider {
    padding: 150px 0;
  }
}

.section__slider .container__center {
  width: 100%;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .section__slider .container__center {
    max-width: 1200px;
    width: 85%;
  }

  .section__slider .container__center:after {
    content: "";
    display: block;
    width: 100%;
    height: 50px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    background: linear-gradient(to top, #f2f3f3, rgba(248, 248, 248, 0));
  }
}

@media (min-width: 992px) {
  .section__slider .container__center {
    max-width: 1070px;
    width: 100%;
  }
}
</style>
